package com.xzx.servlet30;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/5/10 18:19
 */
@WebServlet("/hello")
public class HelloServlet extends HttpServlet {

    public HelloServlet() {
    }

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.getWriter().write("hello servlet3.0");
    }
}
